<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-09 14:45:17
 * @Last Modified time: 2023-02-17 17:12:45
 */
namespace app\common\enum\store\order;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class ExtractStatusEnum
 * @package app\common\enum\store\order
 */
class ExtractStatusEnum extends BaseEnum
{
    // 未取货
    const NOT_DELIVERED = 0;

    // 已取货
    const DELIVERED = 1;

    // 部分取货
    const PARTDELIVERED = 2;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::NOT_DELIVERED => [
                'name' => '未取货',
                'value' => self::NOT_DELIVERED,
                'color' => 'red',
            ],
            self::DELIVERED => [
                'name' => '已取货',
                'value' => self::DELIVERED,
                'color' => 'green',
            ],
            self::PARTDELIVERED => [
                'name' => '部分取货',
                'value' => self::PARTDELIVERED,
                'color' => 'red',
            ],
        ];
    }
}